﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace SmartParking.Models
{
    public class ReservationModel2
    {
        [Required]
        public string ParkingID { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "ParkingName", ResourceType=typeof(SmartParking.Resources.Home.Reservations))]
        public string ParkingName { get; set; }

        [Required]
        public string ParkingZoneID { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "ParkingZoneName", ResourceType = typeof(SmartParking.Resources.Home.Reservations))]
        public string ParkingZoneName { get; set; }

        [Required]
        [StringLength(10)]
        [DataType(DataType.Text)]
        [Display(Name = "CarPlate", ResourceType = typeof(SmartParking.Resources.Home.Reservations))]
        public string CarPlate { get; set; }

        [Required]
        [DataType(DataType.Date)]
        [Display(Name = "Date", ResourceType = typeof(SmartParking.Resources.Home.Reservations))]
        public string Date { get; set; }

        [Required]
        [DataType(DataType.DateTime)]
        [Display(Name = "StartDateTime", ResourceType = typeof(SmartParking.Resources.Home.Reservations))]
        public string StartDateTime { get; set; }

        [Required]
        [DataType(DataType.DateTime)]
        [Display(Name = "EndDateTime", ResourceType = typeof(SmartParking.Resources.Home.Reservations))]
        public string EndDateTime { get; set; }

        [Required]
        [DataType(DataType.Currency)]
        [Display(Name = "Amount", ResourceType = typeof(SmartParking.Resources.Home.Reservations))]
        [DisplayFormat(DataFormatString = "{0:d}")]
        public string Amount { get; set; }

        [Required]
        [DataType(DataType.Currency)]
        [Display(Name = "Commission", ResourceType = typeof(SmartParking.Resources.Home.Reservations))]
        [DisplayFormat(DataFormatString = "{0:d}")]
        public string Commission { get; set; }
    }
}
